set (handMove_VERSION_MAJOR 1)
set (handMove_VERSION_MINOR 0)

SET(handMove_SOURCES main.cpp trajectorycapture.cpp mainwindow.cpp settings.cpp moveapplication.cpp trackseditor.cpp trajectorywidget.cpp xmltrajectoryreader.cpp xmltrajectorywriter.cpp staticgesturedialog.cpp trainstaticgesturedialog.cpp mainstaticgesturedialog.cpp hmmprogressdialog.cpp hmmstatesdialog.cpp)
SET(handMove_HEADERS_TO_MOC trajectorycapture.h mainwindow.h settings.h moveapplication.h trackseditor.h trajectorywidget.h xmltrajectoryreader.h xmltrajectorywriter.h staticgesturedialog.h trainstaticgesturedialog.h mainstaticgesturedialog.h hmmprogressdialog.h hmmstatesdialog.h)
SET(handMove_FORMS  mainwindow.ui settings.ui trackseditor.ui trajectorywidget.ui staticgesturedialog.ui trainstaticgesturedialog.ui mainstaticgesturedialog.ui hmmprogressdialog.ui hmmstatesdialog.ui)

QT4_WRAP_UI(handMove_FORMS_HEADERS ${handMove_FORMS})
QT4_WRAP_CPP(handMove_HEADERS_MOC ${handMove_HEADERS_TO_MOC})

include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../mlgesture")
INCLUDE(${QT_USE_FILE})

ADD_DEFINITIONS(${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

add_executable(handMove ${handMove_SOURCES} ${handMove_HEADERS_MOC} ${handMove_FORMS_HEADERS})
target_link_libraries (handMove mlgesture ${QT_LIBRARIES} ${OpenCV_LIBS} ${Boost_THREAD_LIBRARY})

install(TARGETS handMove DESTINATION ${CMAKE_BINARY_DIR}/app PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
